package org.jeecg.modules.demo.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 平台优惠券发放
 * @Author: jeecg-boot
 * @Date:   2023-11-08
 * @Version: V1.0
 */
@Data
@TableName("yx_store_coupon_grant")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="yx_store_coupon_grant对象", description="平台优惠券发放")
public class YxStoreCouponGrant implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Integer id;
	/**优惠券id*/
	@Excel(name = "优惠券id", width = 15)
    @ApiModelProperty(value = "优惠券id")
    private Integer couponId;
	/**用户ids数量*/
	@Excel(name = "用户ids数量", width = 15)
    @ApiModelProperty(value = "用户ids数量")
    private Integer uids;
    /**每人数量*/
    @Excel(name = "每人数量", width = 15)
    @ApiModelProperty(value = "每人数量")
    private Integer num;
	/**短信模版*/
	@Excel(name = "短信模版", width = 15)
    @ApiModelProperty(value = "短信模版")
    private String messageContent;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
	/**是否删除（0 未删除  1删除）*/
	@Excel(name = "是否删除（0 未删除  1删除）", width = 15)
    @ApiModelProperty(value = "是否删除（0 未删除  1删除）")
    private Integer isDel;
    @Excel(name = "总次数", width = 15)
    @ApiModelProperty(value = "总次数")
    private Integer couponTotal;
    /**
     * 优惠券名称
     */
    @Excel(name = "优惠券名称", width = 15)
    @ApiModelProperty(value = "优惠券名称")
    private String couponName;

    /**选择会员ids*/
    @TableField(exist = false)
    private String userIds;


    /**短信模版Id*/
    @Excel(name = "短信模版Id", width = 15)
    @ApiModelProperty(value = "短信模版Id")
    private Integer messageContentId;

}
